<template>
    <div>
        <table>
            <tr>
                <td>用户名</td>
                <td>密码</td>
            </tr>
            <tr v-for="facility in facilities">
                <td>{{facility.facId}}</td>
                <td>{{facility.facName}}</td>
            </tr>
        </table>
    </div>
</template>

<script>
    export default {
        name: "Facility",
        data(){
            return {
                facilities: [
                    {
                        facId: "01",
                        facName: "ll",
                    }
                ]
            }
        },
        created() {
            alert("Welcome")   //小弹窗
            const _this = this
            axios.get('http://localhost:8081/gas/facility/queryFacilityList').then(function (resp) {
                _this.facilities = resp.data
            })
        }
    }
</script>

<style scoped>

</style>